Francesco Russo JXTAnthill July 2002 Master ’ s

نویسنده

  • Francesco Russo
چکیده

: Collection of papers presented at the Workshop on Virtual Documents, Hypertext Functionality and the Web. END:: ncstrl.cabernet//BOLOGNA#UBLCS−99−10 Figure 8.5 bib file sample entry In order to more easily query the resource manager, we want to translate all these bib entries into XML documents. The DTD of the documents we want to generate is the following: The JXTAnthill Project 113 Figure 8.6 DTD of the XML document used for representing bib items 8.4 Package TrBibReader This package contains the classes needed for parsing a bib file and for generating an XML representation of its textual content. As figure 8.7 depicts, there are three classes: Figure 8.7 TrBibReader UML Class Diagram The JXTAnthill Project 114 TrBibReader.Reader TrBibReader.Bib2XML TrBibReader.BibFormatException 8.4.1 Class TrBibReader.Reader This class’ constructor takes as input parameter a File object, or a String representing the complete path to the bib file describing the resources we want to share. After having instantiated a Reader, what we have to do is invoking its public void parse() method. This method will parse the bib file used to instantiate the Reader object and will store in a couple of Vector objects both the org.w3c.dom.Document and String representation of each entry. These two data structures can be later on retrieved invoking the following methods: public Vector getDocuments() public Vector getDocumentsAsStrings() 8.4.2 Class TrBibReader.Bib2XML Each Reader instance, leverage on the TrBibReader.Bib2XML class for accomplishing its task. What this class does is translating a single bib item into an appropriate XML document. This class’ constructor takes, as input patameter, a LinkedList instance. Each entry of this list corresponds to a bib tag along with its value. For example, given the bib entry depicted in figure 8.8, the first element contained into the list will be: BIB−VERSION:: CS−TR−v2.1 BIB−VERSION:: CS−TR−v2.1 ID:: ncstrl.cabernet//BOLOGNA#UBLCS−99−10 ENTRY:: June 10, 1999 ORGANIZATION:: University of Bologna (Italy). Department of Computer Science. The JXTAnthill Project 115 TITLE:: Proceedings of the Workshop on Virtual Documents, Hypertext Functionality and the Web AUTHOR:: Milosavljevic, M. CONTACT:: AUTHOR:: Vitali, F. CONTACT:: AUTHOR:: Watters, C. CONTACT:: DATE:: May 1999 PAGES:: 51 COPYRIGHT:: Department of Computer Science, University of Bologna, Italy. All rights reserved. OTHER_ACCESS:: URL:ftp://ftp.cs.unibo.it/pub/techreports/99−10.ps.gz

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A generalization of the probability that the commutator of two group elements is equal to a given element

The probability that the commutator of two group elements is equal to a given element has been introduced in literature few years ago. Several authors have investigated this notion with methods of the representation theory and with combinatorial techniques. Here we illustrate that a wider context may be considered and show some structural restrictions on the group.

متن کامل

Abstraction in model checking multi-agent systems

ion in model checking multi-agent systems Mika Cohen Department of Computing Imperial College London London, UK Mads Dam Access Linnaeus Center Royal Institute of Technology Stockholm, Sweden Alessio Lomuscio Department of Computing Imperial College London London, UK Francesco Russo Department of Computing Imperial College London London, UK

متن کامل

Fifth Seminar on Stochastic Analysis, Random Fields and Applications

s of the Fifth Seminar on Stochastic Analysis, Random Fields and Applications ............. 15 Abstracts of the Minisymposium on Stochastic Methods in Financial Models ................................ 53s of the Minisymposium on Stochastic Methods in Financial Models ................................ 53 List of participants............................................................................

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002